<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>玻璃3D倾斜卡片</title>
</head>
	<style>
		@import url("http://fonts.googleapis.com/css?family=Poppins:200,300,400,500,600,700,800,900&display=swap");
		
		* {
		    margin: 0;
		    padding: 0;
		    box-sizing: border-box;
		    font-family: "Poppins";
		}
		
		body {
		    min-height: 100vh;
		    display: flex;
		    justify-content: center;
		    align-items: center;
		    background-color: #161626;
		}
		
		body::before {
		    content: "";
		    position: absolute;
		    top: 0;
		    left: 0;
		    width: 100%;
		    height: 100%;
		    background: linear-gradient(#2193b0, #6dd5ed);
		    clip-path: circle(30% at right 70%);
		}
		
		body::after {
		    content: "";
		    position: absolute;
		    top: 0;
		    left: 0;
		    width: 100%;
		    height: 100%;
		    background: linear-gradient(#ee9ca7, #ffdde1);
		    clip-path: circle(20% at 10% 10%);
		}
		
		.container {
		    position: relative;
		    display: flex;
		    justify-content: center;
		    align-items: center;
		    flex-wrap: wrap;
		    z-index: 1;
		}
		
		.container .card {
		    position: relative;
		    width: 280px;
		    height: 400px;
		    background-color: rgba(255, 255, 255, 0.1);
		    margin: 30px;
		    border-radius: 15px;
		    box-shadow: 20px 20px 50px rgba(0, 0, 0, 0.5);
		    overflow: hidden;
		    display: flex;
		    justify-content: center;
		    align-items: center;
		    border-top: 1px solid rgba(255, 255, 255, 0.5);
		    border-left: 1px solid rgba(255, 255, 255, 0.5);
		    backdrop-filter: blur(5px);
		}
		
		.container .card .content {
		    padding: 20px;
		    text-align: center;
		    transform: translateY(100px);
		    opacity: 0;
		    transition: 0.5s;
		}
		
		.container .card:hover .content {
		    transform: translateY(0);
		    opacity: 1;
		}
		
		.container .card .content h2 {
		    position: absolute;
		    top: -80px;
		    right: 25px;
		    font-size: 128px;
		    color: rgba(255, 255, 255, 0.05);
		}
		
		.container .card .content h3 {
		    font-size: 28px;
		    color: #fff;
		}
		
		.container .card .content p {
		    font-size: 16px;
		    color: #fff;
		    font-weight: 300;
		    margin: 10px 0 15px 0;
		}
		
		.container .card .content a {
		    position: relative;
		    display: inline-block;
		    padding: 8px 20px;
		    margin-top: 15px;
		    background-color: #fff;
		    color: #000;
		    text-decoration: none;
		    border-radius: 20px;
		    font-weight: 500;
		    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
		}
	</style>
<body>
    <div class="container">
        <div class="card">
            <div class="content">
                <h2>01</h2>
                <h3>Card One</h3>
                <p>Realistic glass card hover effect, realistic glass card hover effect, realistic glass card hover
                    effect.</p>
                <a href="#">Read More</a>
            </div>
        </div>
        <div class="card">
            <div class="content">
                <h2>02</h2>
                <h3>Card Two</h3>
                <p>Realistic glass card hover effect, realistic glass card hover effect, realistic glass card hover
                    effect.</p>
                <a href="#">Read More</a>
            </div>
        </div>
        <div class="card">
            <div class="content">
                <h2>03</h2>
                <h3>Card Three</h3>
                <p>Realistic glass card hover effect, realistic glass card hover effect, realistic glass card hover
                    effect, realistic glass card hover effect.</p>
                <a href="#">Read More</a>
            </div>
        </div>
    </div>
</body>
<script src="./js/vanilla-tilt.js"></script>
<script >
	VanillaTilt.init(document.querySelectorAll(".card"), {
	    max: 15,
	    speed: 400,
	    glare: true,
	    "max-glare": 1
	})
</script>
</html>